﻿using System;
using ComponentLoader;
using ebcpatterns.infrastructure;

namespace ConsoleHost
{
    class Program
    {
        static void Main(string[] args)
        {
            var withTracing = args.Length == 0
                ? true
                : string.Compare(args[0], "/donttrace", StringComparison.InvariantCultureIgnoreCase) != 0;
            var loader = new StructureMapComponentLoader<IEntryPoint>();
            loader.Load(withTracing);
            loader.InstanciateEntryPoint().Run(args);
        }
    }
}
